// 视图组件
const view = {
  tabs: () => import('@/layouts/tabs'),
  blank: () => import('@/layouts/BlankView'),
  page: () => import('@/layouts/PageView'),
};

// 路由组件注册
const routerMap = {
  login: {
    authority: '*',
    path: '/login',
    component: () => import('@/pages/login'),
  },
  resetPwd: {
    authority: '*',
    path: '/resetPwd',
    component: () => import('@/pages/login/ResetPwd'),
  },
  WXLogin: {
    authority: '*',
    path: '/WXLogin',
    component: () => import('@/pages/login/wechat.vue'),
  },
  test: {
    authority: '*',
    path: '/test',
    component: () => import('@/pages/test/test'),
  },
  root: {
    path: '/',
    name: '首页',
    redirect: '/login',
    component: view.tabs,
  },
  bigdata: {
    path: 'bigdata',
    name: '数据中心',
    component: () => import('@/pages/bigdata/Bigdata'),
  },
  userSituationDetail: {
    path: 'userSituationDetail',
    name: '用户使用情况',
    haveBack: true,
    invisible: true,
    component: () => import('@/pages/bigdata/components/UserSituationDetail.vue'),
  },
  log: {
    name: '日志管理',
    path: 'log',
    component: view.blank,
  },
  loginLog: {
    path: 'loginLog',
    name: '用户日志',
    component: () => import('@/pages/log/loginLog'),
  },
  operateLog: {
    path: 'operateLog',
    name: '操作日志',
    component: () => import('@/pages/log/operateLog'),
  },
  systemLog: {
    path: 'systemLog',
    name: '系统日志',
    invisible: true,
    component: () => import('@/pages/log/systemLog'),
  },
  system: {
    name: '系统管理',
    component: view.blank,
  },
  software: {
    path: 'software',
    name: '软件管理',
    bgImg: 'headerbg3.jpg',
    component: () => import('@/pages/system/software.vue'),
  },
  org: {
    path: 'org',
    name: '组织架构',
    bgImg: 'headerbg3.jpg',
    component: () => import('@/pages/system/orgStruture'),
  },
  role: {
    path: 'role',
    name: '角色管理',
    bgImg: 'headerbg3.jpg',
    component: () => import('@/pages/system/role'),
  },
  whiteWord: {
    path: 'whiteWord',
    name: '白名单词库',
    bgImg: 'headerbg3.jpg',
    component: () => import('@/pages/system/whiteWords.vue'),
  },
  whiteWordAdd: {
    path: 'whiteWordAdd',
    name: '创建白名单',
    invisible: true,
  },
  whiteWordDelete: {
    path: 'whiteWordDelete',
    name: '删除白名单',
    invisible: true,
  },
  wordList: {
    path: 'wordList',
    name: '黑名单词库',
    bgImg: 'headerbg3.jpg',
    component: () => import('@/pages/system/wordList'),
  },
  sensitiveWordAdd: {
    path: 'sensitiveWordAdd',
    name: '创建黑名单',
    invisible: true,
  },
  sensitiveWordDelete: {
    path: 'sensitiveWordDelete',
    name: '删除黑名单',
    invisible: true,
  },
  wordType: {
    path: 'wordType',
    name: '敏感词类型',
    bgImg: 'headerbg3.jpg',
    component: () => import('@/pages/system/wordType'),
  },
  user: {
    path: 'user',
    name: '账号管理',
    bgImg: 'headerbg3.jpg',
    component: () => import('@/pages/system/user'),
  },
  controlCard: {
    path: 'controlCard',
    name: '控制卡管理',
    bgImg: 'headerbg3.jpg',
    component: () => import('@/pages/system/controlCard'),
  },
  setting: {
    path: 'setting',
    name: '系统设置',
    bgImg: 'headerbg3.jpg',
    component: () => import('@/pages/system/setting'),
  },
  IPwhite: {
    path: 'IPwhite',
    name: 'IP白名单',
    bgImg: 'headerbg3.jpg',
    component: () => import('@/pages/system/IPwhite'),
  },
  backup: {
    path: 'backup',
    name: '数据备份',
    bgImg: 'headerbg3.jpg',
    component: () => import('@/pages/system/backup'),
  },
  resources: {
    path: 'resources',
    name: '资源管理',
    bgImg: 'headerbg3.jpg',
    component: () => import('@/pages/system/resources'),
  },
  checkRule: {
    path: 'checkRule',
    name: '检测规则',
    bgImg: 'headerbg3.jpg',
    component: () => import('@/pages/system/checkRule'),
  },
  applicationInfoAdd: {
    path: 'applicationInfoAdd',
    name: '创建应用',
    invisible: true,
  },
  applicationInfoUpdate: {
    path: 'applicationInfoUpdate',
    name: '修改应用',
    invisible: true,
  },
  applicationInfoDelete: {
    path: 'applicationInfoDelete',
    name: '删除应用',
    invisible: true,
  },
  applicationInfoQuery: {
    path: 'applicationInfoQuery',
    name: '查询应用',
    invisible: true,
  },
  applicationInfo: {
    path: 'applicationInfo',
    name: '应用管理',
    bgImg: 'headerbg3.jpg',
    component: () => import('@/pages/system/applicationInfo'),
  },
  imageVerify: {
    path: 'imageVerify',
    name: '图片检测',
    bgImg: 'headerbg3.jpg',
    component: () => import('@/pages/verify/ImageVerify'),
  },
  videoVerify: {
    path: 'videoVerify',
    name: '视频检测',
    bgImg: 'headerbg3.jpg',
    component: () => import('@/pages/verify/VideoVerify'),
  },
  audioVerify: {
    path: 'audioVerify',
    name: '音频检测',
    bgImg: 'headerbg3.jpg',
    component: () => import('@/pages/verify/AudioVerify'),
  },
  bigFileVerify: {
    path: 'bigFileVerify',
    name: '图文检测',
    bgImg: 'headerbg3.jpg',
    component: () => import('@/pages/verify/BigFileVerify'),
  },
  textVerify: {
    path: 'textVerify',
    name: '文本检测',
    bgImg: 'headerbg3.jpg',
    component: () => import('@/pages/verify/TextVerify'),
  },
  verifyRecord: {
    path: 'verifyRecord',
    name: '检测记录',
    bgImg: 'headerbg3.jpg',
    component: () => import('@/pages/verify/VerifyRecord'),
  },
  verifyReport: {
    path: 'verifyReport',
    name: '检测报告查询',
    bgImg: 'headerbg3.jpg',
    component: () => import('@/pages/verify/VerifyReport'),
  },
  msgCenter: {
    path: 'msgCenter',
    name: '消息中心',
    bgImg: 'headerbg3.jpg',
    component: () => import('@/pages/verify/MsgCenter'),
  },
  checkRuleAdd: {
    path: 'checkRuleAdd',
    name: '创建规则',
    invisible: true,
  },
  checkRuleUpdate: {
    path: 'checkRuleUpdate',
    name: '修改规则',
    invisible: true,
  },
  checkRuleDelete: {
    path: 'checkRuleDelete',
    name: '删除规则',
    invisible: true,
  },
  checkRuleUpdateName: {
    path: 'checkRuleUpdateName',
    name: '修改规则名称',
    invisible: true,
  },
  recordExport: {
    path: 'recordExport',
    name: '导出检测记录',
    invisible: true,
  },
  recordResultLook: {
    path: 'recordResultLook',
    name: '检测结果查看',
    invisible: true,
  },

  checkTaskUpdate: {
    path: 'checkTaskUpdate',
    name: '更新检测记录',
    invisible: true,
  },
  checkTaskDelete: {
    path: 'checkTaskDelete',
    name: '删除检测记录',
    invisible: true,
  },
  checkTaskBatchDelete: {
    path: 'checkTaskBatchDelete',
    name: '批量删除检测记录',
    invisible: true,
  },
  checkTaskTextData: {
    path: 'checkTaskTextData',
    name: '上传文本检测',
    invisible: true,
  },
  checkTaskSaveFile: {
    path: 'checkTaskSaveFile',
    name: '保存文件',
    invisible: true,
  },
  checkTaskUpload: {
    path: 'checkTaskUpload',
    name: '上传检测文件',
    invisible: true,
  },
  checkTaskBatchUpload: {
    path: 'checkTaskBatchUpload',
    name: '批量上传检测文件',
    invisible: true,
  },
  checkTaskTextExport: {
    path: 'checkTaskTextExport',
    name: '文本检测导出doc',
    invisible: true,
  },
  checkTaskExport: {
    path: 'checkTaskExport',
    name: '检测导出',
    invisible: true,
  },
    checkTaskTextYJJC: {
        path: 'checkTaskTextYJJC',
        name: '文本检测一键纠错',
        invisible: true,
    },
    checkTaskTextYJHF: {
        path: 'checkTaskTextYJHF',
        name: '文本检测一键恢复',
        invisible: true,
    },
    checkTaskTextClear: {
        path: 'checkTaskTextClear',
        name: '文本检测清空',
        invisible: true,
    },
    textExport: {
      path: 'textExport',
      name: '下载检测报告',
      invisible: true,
    },
    imageVerifyPlaceholder: {
      path: 'imageVerifyPlaceholder',
      name: '图片检测功能',
      invisible: true,
    },

};
export default routerMap;
